<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * App\Models\CashLog
 *
 * @property int $id
 * @property int $user_id 用户id
 * @property string $order_no 体现单号
 * @property float $money 金额
 * @property int $status 状态
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property-read \App\Models\User $user
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CashLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CashLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CashLog whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CashLog whereOrderNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CashLog whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CashLog whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CashLog whereUserId($value)
 * @mixin \Eloquent
 */
class CashLog extends Model
{


    protected $table = 'cash_logs';
    protected $guarded = [];

    public function user()
    {
        return $this->hasOne('\App\Models\User', 'id', 'user_id');
    }

}
